package com.haoniu.module.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haoniu.module.mapper.MerchantChargeRecordMapper;
import com.haoniu.module.domain.database.MerchantChargeRecord;
import com.haoniu.module.service.MerchantChargeRecordService;
import com.haoniu.common.support.Convert;

/**
 * 商户充值金额流水明细 服务层实现
 * 
 * @author houyijun
 * @date 2019-01-28
 */
@Service
public class MerchantChargeRecordServiceImpl implements MerchantChargeRecordService
{
	@Autowired
	private MerchantChargeRecordMapper merchantChargeRecordMapper;

	/**
     * 查询商户充值金额流水明细信息
     * 
     * @param id 商户充值金额流水明细ID
     * @return 商户充值金额流水明细信息
     */
    @Override
	public MerchantChargeRecord selectMerchantChargeRecordById(Integer id) {
	    return merchantChargeRecordMapper.selectMerchantChargeRecordById(id);
	}
	
	/**
     * 查询商户充值金额流水明细列表
     * 
     * @param merchantChargeRecord 商户充值金额流水明细信息
     * @return 商户充值金额流水明细集合
     */
	@Override
	public List<MerchantChargeRecord> selectMerchantChargeRecordList(MerchantChargeRecord merchantChargeRecord) {
	    return merchantChargeRecordMapper.selectMerchantChargeRecordList(merchantChargeRecord);
	}
	
    /**
     * 新增商户充值金额流水明细
     * 
     * @param merchantChargeRecord 商户充值金额流水明细信息
     * @return 结果
     */
	@Override
	public int insertMerchantChargeRecord(MerchantChargeRecord merchantChargeRecord) {
	    return merchantChargeRecordMapper.insertMerchantChargeRecord(merchantChargeRecord);
	}
	
	/**
     * 修改商户充值金额流水明细
     * 
     * @param merchantChargeRecord 商户充值金额流水明细信息
     * @return 结果
     */
	@Override
	public int updateMerchantChargeRecord(MerchantChargeRecord merchantChargeRecord) {
	    return merchantChargeRecordMapper.updateMerchantChargeRecord(merchantChargeRecord);
	}

	/**
     * 删除商户充值金额流水明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteMerchantChargeRecordByIds(String ids) {
		return merchantChargeRecordMapper.deleteMerchantChargeRecordByIds(Convert.toStrArray(ids));
	}
	
}
